home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1986-10-07 | 259 b | 18 lines |
- /* Program 3 */
- /*
- The goal to enter is on page 24 of the manual.
- */
-
- domains
- child = symbol
- age = integer
-
- predicates
- pupil(child,age)
-
- clauses
- pupil(peter,9).
- pupil(paul,10).
- pupil(chris,9).
- pupil(susan,9).